﻿using Abp.AutoMapper;
using System.ComponentModel.DataAnnotations;

namespace CPPProject.CPP.Dto
{
    [AutoMapTo(typeof(CPPCustomer))]
    public class CreateCPPCustomerDto
    {
        /// <summary>
        /// 客户名称
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 所属公司
        /// </summary>
        [Required]
        public long CompanyId { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string CustNum { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary>
        [Required]
        [MaxLength(500)]
        public string Address { get; set; }
        [MaxLength(500)]
        public string Address2 { get; set; }
        [MaxLength(500)]
        public string Address3 { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Contactor { get; set; }
        [MaxLength(50)]
        public string Contactor2 { get; set; }
        [MaxLength(50)]
        public string Contactor3 { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Telphone { get; set; }
        [MaxLength(50)]
        public string Telphone2 { get; set; }
        [MaxLength(50)]
        public string Telphone3 { get; set; }
        /// <summary>
        /// 是否启用（1是0否）
        /// </summary>
        public bool IsEnabled { get; set; }
        /// <summary>
        /// Email地址
        /// </summary>
        [MaxLength(300)]
        public string Email { get; set; }
        /// <summary>
        /// 集团
        /// </summary>
        [MaxLength(50)]
        public string Group { get; set; }
        /// <summary>
        /// 销售人员
        /// </summary>
        [MaxLength(50)]
        public string Saler { get; set; }
        /// <summary>
        /// 税号
        /// </summary>
        [MaxLength(50)]
        public string TaxNumber { get; set; }
        /// <summary>
        /// 开户行
        /// </summary>
        [MaxLength(300)]
        public string OpeningBank { get; set; }
        /// <summary>
        /// 开户账号
        /// </summary>
        [MaxLength(50)]
        public string OpeningAccount { get; set; }
    }
}
